﻿



$.extend($.dialog.defaults, {
    okValue: "确定",
    cancelValue: "取消",
    title: "消息",
    lock: true
});


$.ajaxSetup({ cache: false });


$.extend($.blockUI.defaults, {
    message: '<span style="color:white;font-size:50px;">加载中...</span>',
    css: {
        position: 'absolute',
        top: 10,
        left: 10
    },
    fadeOut: 0
});

//默认设置来同步所有的AJAX请求动作
//$(document).ajaxStart($.blockUI).ajaxStop($.unblockUI);


//默认菜单
var CurrentMenu = "主页";

$(function () {

    //表格交替色
    $("#table_data tr").each(function (index) {
        if (index > 0) {
            $(this).hover(function () {
                $(this).addClass("tr_mouseover");
            },
        function () {
            $(this).removeClass("tr_mouseover");
        });
        }
    });

    //菜单
    $("#menu a").each(function () {
        var a = $(this);
        if (a.html() == CurrentMenu) {
            a.css({ 'color': 'red' });
        }
    });



});

